#环境
FROM java:8

#将本地文件挂到当前容器
VOLUME /Users/chenlushun/yc-code/demo/demo-docker-maven/target/demo-docker-maven-1.0-SNAPSHOT.jar

#拷贝文件到容器
ADD  demo-docker-maven-1.0-SNAPSHOT.jar  app.jar

RUN bash -c "touch /app.jar"

#暴露端口
EXPOSE 8761

#配置容器启动之后的命令
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","app.jar"]